/* eslint-disable @typescript-eslint/no-explicit-any */
import axios from "./axios";

const ApiService = {
    // 登录接口
    async login(values: any) {
        return axios.post('/login', values).then(res => res.data);
    },

    // 刷新 token 接口
    async refreshToken(refreshToken: string) {
        return axios.post('/refreshToken', { refreshToken }).then(res => res.data);
    }
}
export default ApiService;